package consts

const (
	INVALID_PASSWORD            = "密码格式不正确(至少一位大写字母、一位小写字母、一位数字和一位特殊字符[@,_],且长度在8-30位)"
	INVALID_NEW_REPEAT_PASSWORD = "新密码和重复密码不一致"
	INVALID_NEW_PASSWORD        = "新密码格式不正确(至少一位大写字母、一位小写字母、一位数字和一位特殊字符[@,_],且长度在8-30位)"
	USER_NOT_FOUND              = "用户不存在或已被删除"
	INVALID_OLD_PASSWORD        = "当前密码不正确"
)

type UserStatus int

const (
	USER_STATUS_INACTIVE UserStatus = iota // 0 - 禁用
	USER_STATUS_ACTIVE                     // 1 - 启用
)

func (u UserStatus) String() string {
	switch u {
	case USER_STATUS_INACTIVE:
		return "禁用"
	case USER_STATUS_ACTIVE:
		return "启用"
	}

	return "未知"
}

const (
	USER_LOGIN = iota
	USER_LOGOUT
)
